#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>


class QPropertyAnimation;
class QGraphicsDropShadowEffect;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

    Q_PROPERTY(int iBorderRadius READ iBorderRadius WRITE setBorderRadius)
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    //自定义属性修改QLable的边框，以达到动画效果
private:
    int iBorderRadius() const;
    void setBorderRadius(const int radius);


signals:
    void StartLableAnimation();

private:
    Ui::MainWindow *ui;

    int m_borderRadius;
    QPropertyAnimation* m_lblSnapImgAnimation;
    QPropertyAnimation* m_lblIdentityImgAnimation;
    QGraphicsDropShadowEffect* m_lblSnapImgshadowEffect;
    QGraphicsDropShadowEffect* m_lblIdentityImgshadowEffect;
};

#endif // MAINWINDOW_H
